<?php
$view_post .= '<div class="boxleft"><div class="titleleft"></div><div class="titlecenter"><a href="'.$row_menu_one['url'].'">'.$row_menu_one['name'].'</a></div><div class="titleright"></div><div style="clear:both"></div>
<div id="view_post">
	<h1>'.$row_detail['name'].'</h1>
	<div id="datetime">'.date('d/m/Y H:i',strtotime($row_detail['date_create'])).'</div>
	'.$row_detail['content'].'
</div>';

$baiviet = $tc->baivietkhac($idMenu,$row_detail['id']);
if(mysql_num_rows($baiviet)>1){
	$view_post .= '<hr /><div id="baivietkhac"><div style="color:#666; font-weight:bold; font-size:18px; margin-bottom:10px">Bài viết khác</div>';
	while($row = mysql_fetch_array($baiviet)){
		$view_post .= '<li><a href="'.$row_menu_one['url'].$row['name_rewrite'].'.html" title="'.$row['name'].'">'.$row['name'].'</a></li>';
	}
	$view_post .= '</div>';
}

$view_post .= '<div style="clear:both; height:8px"></div></div>';